<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php?m=shop_order&a=my"><i class="back"></i></a></div>
      <div class="t_main">订单详情</div>
       
    </div>
    <div class="paddingheight"></div>
    
    <div class="comblock">
                <div class="order_state_text clearfix">
                    <span class="fl">单号：{$data.orderno}</span>
                    <span class="fr">状态：{$order_status_list[$data.status]}</span>
                </div>
    </div> 
            
     
     <ul class="cart_new_list clearfix">
                <li>
					{foreach item=p from=$order_product}
                    <div class="list clearfix">
                        <div class="cart_pic"><a href="javascript:;"><img src="{$p.imgurl|images_site}.100x100.jpg" class="img"></a></div>
                        <div class="cart_content">
                            <div class="tit">{$p.title}</div>
                            <div class="info">
                                <p class="fl"><span class="red">￥{$p.price}</span></p>

                                <p class="fr"><b class="red">× {$p.amount}</b></p>
                            </div>
                        </div>
                    </div>
                    {/foreach}
                     
                    <div class="cart_total">共{$total_num}件，
                        合计：<b class="red">￥{$data.money}</b></div>

                    <div class="cart_change_notice" style="margin: 0 10px;">
                        <textarea class="area" disabled="">备注：{$data.comment}</textarea>
                    </div>
                </li>
            </ul>
     
      <div class="comblock">
                <div class="order_state_text">
                    姓名：{$addr.truename}<br>
                    手机：{$addr.telephone}<br>
                    地址：<span class="red">{$addr.p_c_t}-{$addr.sushe}寝室 </span>
                    <br>
                    详细地址：{$addr.address}
                </div>
            </div>
            
    <div class="comblock">
                <div class="order_state_text">
                    店铺：<a href="/index.php?m=shop&shopid={$shop.shopid}">{$shop.shopname}</a><br>
                    优惠额：<span class="green">{$data.discount_money}</span> <br>
                    下单时间：{$data.dateline|date:Y-m-d H:i:s}<br>
                    
                    付款方式：<span class="red">{if $data.unpay}货到付款{else} {$order_ispay[$data.ispay]}   {if !$data.unpay && $data.ispay==1}<a href="/index.php?m=shop_order&a=pay&order_id={$$data.order_id}">去支付</a>{/if}{/if} </span>
                    <br>
                    {if $data.status eq 2}
          {if $data.isreceived eq 1}
          <a href="/index.php?m=shop_order&a=receive&order_id={$data.order_id}">确认收货</a>
          {else}
          已收货
          {/if}
          {/if}
                </div>

            </div>
    {if $data.iscomment}        
    <div class="comblock">
    	{get data=comment model=shop_order_comment fun=selectRow("order_id=$data.order_id")}
        <div style="padding:10px; height:60px;">
        	<ul class="order_star_ul  " style="height:30px; display:block">
              <li><a class="one-star {if $comment.grade >=1}active-star{/if}" title="很差" href="#"></a></li>
              <li><a class="two-star {if $comment.grade >=2}active-star{/if}" title="差" href="#"></a></li>
              <li><a class="three-star {if $comment.grade >=3}active-star{/if}" title="还行" href="#"></a></li>
              <li><a class="four-star {if $comment.grade >=4}active-star{/if}" title="好" href="#"></a></li>
              <li><a class="five-star {if $comment.grade >=5}active-star{/if}" title="很好" href="#"></a></li>
            </ul>
            
            <ul class="order_star_ul  ">
              <li><a class="one-star {if $comment.product_grade >=1}active-star{/if}" title="很差" href="#"></a></li>
              <li><a class="two-star {if $comment.product_grade >=2}active-star{/if}" title="差" href="#"></a></li>
              <li><a class="three-star {if $comment.product_grade >=3}active-star{/if}" title="还行" href="#"></a></li>
              <li><a class="four-star {if $comment.product_grade >=4}active-star{/if}" title="好" href="#"></a></li>
              <li><a class="five-star {if $comment.product_grade >=5}active-star{/if}" title="很好" href="#"></a></li>
            </ul>
        </div>
    	<div class="cart_change_notice" style="margin: 0 10px;">
                        <textarea class="area" disabled="">评价：{$comment.content}</textarea>
                    </div>
    </div>
   {/if}         
   {if $data.status eq 0}
        <a href="/index.php?m=shop_order&a=cancel&order_id={$data.order_id}" class="global_btn cancel">取消订单</a> <br>
        {/if}
        {if $data.status eq 2}
        <a href="tel:{$data.kdy_telephone}" class="global_btn">联系配送员</a> <br>
        {/if}
        
   {if $data.status eq 3  }
   <a href="/index.php?m=shop_order&a=comment&order_id={$data.order_id}" class="global_btn submit">评价订单</a> <br>
   {/if}  
     
     
     
  
  {include file="footer.html"} </div>
</body>
</html>